//
//  headPictureViewController.m
//  A段项目音乐播放
//
//  Created by dllo on 15/5/27.
//  Copyright (c) 2015年 lanou3g.com蓝鸥科技. All rights reserved.
//

#import "headPictureViewController.h"
#import "firstModel.h"
#import "firsPageViewController.h"
@interface headPictureViewController ()

@end

@implementation headPictureViewController
- (void)dealloc
{
    [_MODEL release];
    
    [super dealloc];
}
- (void)viewDidLoad {
    [super viewDidLoad];
 
    UIWebView *webView =[[UIWebView alloc]initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height-64)];
    NSURLRequest *request =[NSURLRequest requestWithURL:[NSURL URLWithString:self.MODEL.value]];
    [self.view addSubview:webView];
    [webView loadRequest:request];
    
    UIBarButtonItem *button =[[UIBarButtonItem alloc]initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:self action:@selector(button:)];
    
    [self.navigationItem setLeftBarButtonItem:button];
    
    
}

-(void)button:(id)but

{
    firsPageViewController * one = [[firsPageViewController alloc]init];
    
    [self.navigationController popViewControllerAnimated:YES];
    
    [one release];


}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
   
}

@end
